<template>
  <div class="table-head">
    <a-card :bordered="false" :header-style="{ padding: '0 12px' }">
      <template #title> {{ t["下发记录"] }} </template>

      <div class="flex gap-4 justify-between">
        <div>
          <a-input-search
            class="w-[200px]"
            @search="searchDetail"
            v-model="detailQuery.mediaId"
            @keydown.enter="searchDetail"
          />
        </div>

        <div class="flex items-center gap-4 text-nowrap">
          <div>{{ t["状态"] }}</div>
          <a-select
            class="w-[200px]"
            @change="searchDetail"
            v-model="detailQuery.status"
            :options="translateOptions(triggerOptions)"
          />
        </div>
      </div>
    </a-card>
  </div>
</template>

<script setup lang="ts">
import { triggerOptions } from "@/data/options/options";
import { detailQuery, searchDetail } from "./data";

const t = translate("公共模块");
</script>

<style lang="scss" scoped>
:deep(.arco-card-header) {
  border: none;
}
</style>
